package com.glq1218.springsecuritydemo.controller;

import com.glq1218.springsecuritydemo.domain.entity.User;
import com.glq1218.springsecuritydemo.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author glq1218
 */
@RestController
@RequiredArgsConstructor
public class TestController {
    private final UserService userService;

    @GetMapping("/test")
    public User test() {
        return userService.getById(1);
    }
}
